package com.tyk.bookstore.front.auth.valid;

import com.tyk.bookstore.front.auth.valid.validator.LoginCodeQueryValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;


/**
 * @author tyk
 * @description 验证码登录参数校验注解
 */
@Target({ElementType.TYPE})
@Constraint(validatedBy = {LoginCodeQueryValidator.class})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface LoginCodeQueryValid {
    String message() default "登录参数格式错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
